﻿using System;
using NHibernate;

namespace Inovout.Repository
{
    public interface ISessionFactoryHolder
    {
        ISession CreateSession(Type type);
        void FailSession(ISession session);
        NHibernate.Cfg.Configuration GetNHibernateConfiguration(object obj);
        /// <summary>
        /// 获取session工厂
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        ISessionFactory GetSessionFactory(Type type);
    }
}
